from django.conf.urls import patterns, url

from polls import views

urlpatterns = patterns(
	'views',
	url(r'^$', IndexView.as_view(), name = 'index'),
	url(r'^(?P<poll_id>\d+)/$', DetailView.as_view(),name='detail'),
	url(r'^(?P<poll_id>\d+)/results/$', ResultsView.as_view(), name='results'),
	url(r'^(?P<poll_id>\d+)/vote/$',views.vote, name='vote'),
)
